package com.qiu.aiteacherbacker.model.domain.AiRequest;


import lombok.AllArgsConstructor;
import lombok.Data;

import java.nio.charset.Charset;

@Data
@AllArgsConstructor
public class Config {

    private final String apiUrl;
    private final String key;// fastgpt的key
    private final String chatKey; // 应用的key
    private final String charset;
    private final String version;


    public Config(String key, String chatKey) {
        //http://localhost:3000/api
        this.apiUrl = "http://10.3.36.37:3000";
        this.key = key;// fastgpt的key
        this.charset = Charset.defaultCharset().displayName();
        this.version = "v1";
        this.chatKey = chatKey;// 应用的key
    }

    public Config(String apiUrl, String key, String chatKey) {
        this.apiUrl = apiUrl;
        this.key = key;
        this.charset = Charset.defaultCharset().displayName();
        this.version = "v1";
        this.chatKey = chatKey;
    }

}